namespace Apps.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("V_PL_BATCH_FOR_TEST")]
    public partial class V_PL_BATCH_FOR_TEST
    {
        [Key]
        [Column(Order = 0)]
        public DateTime PLAN_DATE { get; set; }

        [Key]
        [Column(Order = 1)]
        [StringLength(40)]
        public string BATCH_CODE { get; set; }

        public int? ARTIFICIAL_CODE { get; set; }

        [StringLength(40)]
        public string TEST_CODE { get; set; }

        [StringLength(40)]
        public string MINE_ID { get; set; }

        [StringLength(50)]
        public string MINE_NAME { get; set; }

        [Key]
        [Column(Order = 2)]
        [StringLength(40)]
        public string MATERIEL_ID { get; set; }

        [StringLength(50)]
        public string MATERIEL_NAME { get; set; }

        public bool? STATISTICS { get; set; }

        [Key]
        [Column(Order = 3)]
        [StringLength(40)]
        public string SUPPLIER_ID { get; set; }

        [StringLength(50)]
        public string SUPPLIER_NAME { get; set; }

        [StringLength(40)]
        public string TRANSPORT_ID { get; set; }

        [StringLength(50)]
        public string TRANSPORT_NAME { get; set; }

        public DateTime? BEGIN_TIME { get; set; }

        public DateTime? END_TIME { get; set; }

        [Key]
        [Column(Order = 4)]
        public decimal AMOUNT { get; set; }

        [Key]
        [Column(Order = 5)]
        public decimal QNET { get; set; }

        [Key]
        [Column(Order = 6)]
        public decimal ST { get; set; }

        [StringLength(500)]
        public string REMARKS { get; set; }

        [StringLength(80)]
        public string MAKE_CODE { get; set; }

        [StringLength(4)]
        public string MAKE_MODE_STR { get; set; }

        [StringLength(100)]
        public string EQUIPMENT_NAME { get; set; }

        public decimal? CARCOUNT { get; set; }
    }
}
